package io.sdl.common.sys.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import io.sdl.common.service.impl.CrudServiceImpl;

import io.sdl.common.sys.dao.SdlDoctorsAffiliationsDao;
import io.sdl.common.sys.dto.SdlDoctorsAffiliationsDTO;
import io.sdl.common.sys.entity.SdlDoctorsAffiliationsEntity;
import io.sdl.common.sys.service.SdlDoctorsAffiliationsService;
import cn.hutool.core.util.StrUtil;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * 
 *
 * @author Dc 1211734836@qq.com
 * @since 1.0.0 2025-03-28
 */
@Service
public class SdlDoctorsAffiliationsServiceImpl extends CrudServiceImpl<SdlDoctorsAffiliationsDao, SdlDoctorsAffiliationsEntity, SdlDoctorsAffiliationsDTO> implements SdlDoctorsAffiliationsService {

    @Override
    public QueryWrapper<SdlDoctorsAffiliationsEntity> getWrapper(Map<String, Object> params){
        String id = (String)params.get("id");

        QueryWrapper<SdlDoctorsAffiliationsEntity> wrapper = new QueryWrapper<>();
        wrapper.eq(StrUtil.isNotBlank(id), "id", id);

        return wrapper;
    }


}